package frontend.parser.syntaxtree;

import frontend.parser.syntaxtree.symbol.NonTerminalSymbol;
import frontend.parser.syntaxtree.symbol.TerminalSymbol;

import java.util.function.Consumer;

/**
 * stmt
 * @author 杨凯伟
 * @date 2024/10/14
 */
public class BlockItemNodeForStmt extends BlockItemNode {
    public StmtNode stmt;

    @Override
    public void walk(Consumer<TerminalSymbol> terConsumer, Consumer<NonTerminalSymbol> nonTerConsumer) {
        stmt.walk(terConsumer, nonTerConsumer);
        nonTerConsumer.accept(new NonTerminalSymbol(this));
    }
}
